%fieldset
  %legend= l(:label_filter_plural)
  .clearfix{:style => "width:100%"}
    /= form_tag( {:project_id => @project}, :method => :get, :id => 'kanban_query_form') do
    /= form_tag :action => 'index',:project_id =>  params[:project_id]
    = form_tag( {:controller => "kanban_reports", :action => 'index', },:tab => "Weekly", :method => :get, :id => 'kanban_query_form') do
      = select_tag "project_id", options_for_select([["All Projects",0]]) + options_from_collection_for_select(@projects, "id", "name",params[:project_id] || 0)
      /= select_tag "kanban_id", options_for_select([["All Kanbans",0]]) + options_from_collection_for_select(@kanbans, "id", "name",params[:kanban_id] || 0)
      = select_tag "group_id", options_for_select([["All Groups",0]]) + options_from_collection_for_select(@groups,"id", "alias", params[:group_id] || 0)
      /= select_tag "member_id", options_for_select([["All Members",0]]) + options_from_collection_for_select(@members,"id", "name", params[:member_id] || 0)
      = label_tag "From:"
      = text_field_tag :from, params[:from], :size => 6, :type => "date"
      = calendar_for(:from)
      = label_tag "To: "
      = text_field_tag :to, params[:to], :size => 6, :type => "date"
      = calendar_for(:to)
      = submit_tag l(:button_apply),{:class => 'icon icon-checked'}
      /%input#kanban-search{:type=>"text",:style=>"width:150px;"}


